class GuaScene {
    constructor(game) {
        this.game = game
        self = this
        this.elements = []
    }

    addElement(element) {
        element.scene = this
        this.elements.push(element)
    }
    changeScene() {
        
    }

    draw() {
        for (var i = 0; i < this.elements.length; i++) {
            var e = this.elements[i]
            e.draw()
        }
    }

    update() {
        if (this.paused == true) {
            return
        }
        var elements = this.elements
        for (var i = 0; i < this.elements.length; i++) {
            var e = this.elements[i]
            e.update()
        }
        if (this.debugModeEnabled) {
            this.debug()
        }
    }
    debug() {

        var elements = this.elements
        if (this.debugModeEnabled) {
            for (var i = 0; i < this.elements.length; i++) {
                var e = this.elements[i]
                e.debug && e.debug()
            }
        }

    }
}